// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MyHeader from './components/MyHeader'

//导入异步请求框架
import  axios from 'axios'
import VueAxios from 'vue-axios'

axios.defaults.withCredentials=true;//让ajax携带cookie

Vue.prototype.$axios = axios;// 使用this.$axios
//原型链

Vue.config.productionTip = false


Vue.component("MyHeader",MyHeader)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
